package cn.mily.basics.mapper;

import cn.mily.basics.query.BaseQuery;

import java.util.List;

public interface BasicMapper<T> {
    /*添加*/
    void add(T t);
    /*修改*/
    void update(T t);
    /*单个删除*/
    void delete(Long id);
    /*查询一个*/
    T findOne(Long id);
    /*高级查询+分页*/
    List<T> findAll(BaseQuery query);
    /*高级查询所有数量*/
    Integer getCount(BaseQuery query);
    /*批量删除*/
    void patchDelete(Long[] ids);

}
